package com.bkaka;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import com.bkaka.entity.ExamCategory;
import com.bkaka.service.ExamCategoryService;

@RunWith(SpringRunner.class)
@SpringBootTest
public class Mytest {

	@Autowired
	private ExamCategoryService examCategoryService;
	
	
	@Test
	public void test() {
		ExamCategory category = new ExamCategory();
		category.setName("北京");
		category.setNote("按钮");
		category.setStatus(0);
		examCategoryService.create(category);
	}
	
}
